<div id="admin-panel">
	<?php if(count($news) < 1):?>
	<p>请添加内容</p>
	<?php else:?>
	<div class="single-clear"><span class="page-title">教研室管理</span></div>
	<?php endif;?>
	<?=form_open('/admin/delete_o');?>
	<input type="hidden" name="table" value="webpage_office" />
	<input type="hidden" name="backurl" value="<?=current_url()?>" />
	<?php 
	$this->table->set_heading('标题', '选择');
	foreach($news as $news_item) {
		$this->table->add_row('<a href="'.site_url('/admin/edit_o/'.$news_item->OrgId).'">'.$news_item->OrgName.'</a>', '<input type="checkbox" name="delete[]" value="'.$news_item->OrgId.'"/>');
	}

	echo $this->table->generate();
	?>
	<input type="submit" value="删除选中项"/>
	<a href="<?=site_url('/admin/addnew_o/')?>">添加新文章</a>
	</form>
	<?php $this->pagination->initialize($pagination); ?>
	<div class="pagination"><?=$this->pagination->create_links()?></div>
	<div class="bottom-clear"></div>
</div>